package com.makefriends.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.makefriends.R;
import com.makefriends.adapter.CommonPagerAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by sks on 2016/3/7.
 */
public class FouthNearbyFragment extends LazyFragment implements ViewPager.OnPageChangeListener{

    public static int CLASS_TYPE = 0;
    private View mView;
    private Activity mContext;
    private CommonPagerAdapter mAdapter;

    protected int mCurrentTab = 0;
    protected int mLastTab = -1;

    private final List<String> titles = new ArrayList<>();

    private List<Fragment> fragments = new ArrayList<Fragment>();
    @Override
    protected void lazyLoad() {

    }

    @Override
    protected View doCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mView = inflater.inflate(R.layout.fragment_nearby,container,false);
        return mView;
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        mContext = activity;
    }

    @Override
    public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

    }

    @Override
    public void onPageSelected(int position) {

    }

    @Override
    public void onPageScrollStateChanged(int state) {

    }
}
